<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>08_字符串方法-includes-repeat</title>
    </head>
    <body>
        <script>
            // (17) includes
            var str17 = 'hello';

            console.log(str17.includes('l'));
            console.log(str17.includes('el'));


            // (18) repeat
            var str18 = '*';
            console.log(str18.repeat(100));
        </script>
    </body>
</html>